package Collection;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class NewForDemo {
    public static void main(String[] args) {
        String[] arrey={"one","two","three","four","five"};
        for (int i=0;i< args.length;i++){
            System.out.println(arrey[i]);
        }
        for (String str:arrey){
            System.out.println(str);
        }


        Collection c=new ArrayList();

        Collection<String> cc=new ArrayList<>();
        cc.add("hello");






        /*
        c.add("#");
        c.add("one");
        c.add("#");
        c.add("two");
        c.add("#");
        c.add("three");
        c.add("#");
        System.out.println(c);

        Iterator it= c.iterator();
        while (it.hasNext()){
            String str=(String) it.next();
            System.out.println(str);

        }
        System.out.println(c);

         */
    }
}
